// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2005-5-19

#ifndef __PROCCHECK_H_COMMON_GUARD__
#define __PROCCHECK_H_COMMON_GUARD__

#pragma once

#include "modcheck.h"
#include "crc.h"

namespace JoyGuard
{

// check process in the system.
//##ModelId=44C4B60D02BF
class ProcCheck : public ModCheck
{
protected:
	//##ModelId=44C4B60D02C1
    HANDLE      m_currProcess;
	//##ModelId=44C4B60D02CE
    DWORD       m_currProcessId;
	//##ModelId=44C4B60D02D0
    FILETIME    m_lastCheck;
	//##ModelId=44C4B60D02D4
    virtual void CheckProc();
	//##ModelId=44C4B60D02DF
    virtual void ReadMemory(void* dst, void* src, int len);
public:
	//##ModelId=44C4B60D02E4
    ProcCheck();
	//##ModelId=44C4B60D02EE
    virtual ~ProcCheck();
};

} // namespace JoyGuard

#endif  // __PROCCHECK_H_COMMON_GUARD__
